/**
 * @author jmdelgado
 */
//Inicialización del objeto server:
WebKitDev.Application.Server={};
(
    function()
    {
        this.originalURL= new WebKitDev.Core.Structures.Url(document.location.href);
        this.getServerRoot = function()
        {
            var returned = this.originalURL.Protocol+"://"+this.originalURL.Server;
            if(this.originalURL.Port)
                returned+=":"+this.originalURL.Port;
            //La raiz está dentro de un directorio:
            if(this.originalURL.Path)
                returned += "/"+this.originalURL.Path;
            return returned;
        }
          
    }
    
).apply(WebKitDev.Application.Server);
    
    
